/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

// Override OuiFlyout background
$ouiCollapsibleNavBackgroundColor: $ouiPageBackgroundColor !default;

// No distinction between none and light backgrounds in this theme
$ouiCollapsibleNavGroupNoneBackgroundColor: $ouiPageBackgroundColor !default;
$ouiCollapsibleNavGroupLightBackgroundColor: $ouiPageBackgroundColor !default;

$ouiCollapsibleNavGroupDarkBackgroundColor: lightOrDarkTheme(
  shade($ouiColorDarkestShade, 20%),
  shade($ouiColorLightestShade, 50%),
) !default;

$ouiCollapsibleNavGroupDarkHighContrastColor: makeGraphicContrastColor(
  $ouiColorPrimary,
  $ouiCollapsibleNavGroupDarkBackgroundColor
) !default;


/* OUI -> EUI Aliases */
$euiCollapsibleNavBackgroundColor: $ouiCollapsibleNavBackgroundColor;
$euiCollapsibleNavGroupNoneBackgroundColor: $ouiCollapsibleNavGroupNoneBackgroundColor;
$euiCollapsibleNavGroupLightBackgroundColor: $ouiCollapsibleNavGroupLightBackgroundColor;
$euiCollapsibleNavGroupDarkBackgroundColor: $ouiCollapsibleNavGroupDarkBackgroundColor;
$euiCollapsibleNavGroupDarkHighContrastColor: $ouiCollapsibleNavGroupDarkHighContrastColor;
/* End of Aliases */
